package com.zygh.policeasset.mapper;

import com.zygh.policeasset.pojo.Images;
import com.zygh.policeasset.pojo.ReviewComments;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ReviewCommentsMapper {
    @Select({"select * from review_comments"})
    List<ReviewComments> findAll();

    @Insert({"insert into review_comments (content) values (#{content})"})
    Integer add(ReviewComments reviewComments);

    @Update({"update review_comments set content = #{content} where id = #{id}"})
    int update(ReviewComments reviewComments);

    @Delete({"delete from review_comments where id=#{id}"})
    Integer delete(Integer id);
}